package com.genokon.druid;

import com.genokon.druid.entity.GenHpoTemp;
import org.springframework.boot.autoconfigure.websocket.servlet.WebSocketServletAutoConfiguration;

import java.lang.reflect.Field;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.UUID;
import java.util.concurrent.ThreadLocalRandom;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * @author by baichaoda
 * @date 2020/7/31 14:15
 */
public class GetHopMain {
    private static  Pattern pattern = Pattern.compile("HP:\\d{7}");
    public static void main(String[] args) {
//        Field[] fields = GenHpoTemp.class.getFields();
//        System.out.println(Arrays.toString(fields));
//        String a = (String) WebSocketServletAutoConfiguration.class.toString();


        String s = "http://49.4.68.254:8081/knowledge/hpo/HP:0000193/";

        Matcher matcher = pattern.matcher(s);
        while (matcher.find()){
            System.out.println(matcher.group());
        }

    }
}
